import com.google.gson.Gson;
import org.gdal.ogr.Feature;
import org.gdal.ogr.Geometry;
import org.gdal.ogr.ogr;
import org.gdal.osr.SpatialReference;

import java.util.IdentityHashMap;

public class MapTest {
    public static void main(String[] s) {
        IdentityHashMap map = new IdentityHashMap();

        map.put("a", "v");
        map.put("a", "b");
        map.put("a", "c");

        System.out.println(new Gson().toJson(map));

        SpatialReference spatialReference = new SpatialReference("PROJCS[\"CGCS2000_3_Degree_GK_CM_78E\",GEOGCS[\"GCS_China_Geodetic_Coordinate_System_2000\",DATUM[\"D_China_2000\",SPHEROID[\"CGCS2000\",6378137.0,298.257222101]],PRIMEM[\"Greenwich\",0.0],UNIT[\"Degree\",0.0174532925199433]],PROJECTION[\"Gauss_Kruger\"],PARAMETER[\"False_Easting\",500000.0],PARAMETER[\"False_Northing\",0.0],PARAMETER[\"Central_Meridian\",78.0],PARAMETER[\"Scale_Factor\",1.0],PARAMETER[\"Latitude_Of_Origin\",0.0],UNIT[\"Meter\",1.0],AUTHORITY[\"EPSG\",4535]]");


        Geometry geometry = new Geometry(ogr.wkbPolygon);

        System.out.println(geometry.toString());
    }
}
